import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import net.minidev.json.JSONUtil;

import java.util.List;
import java.util.Map;

/**
 * @Author: zhike
 * @CreateTime: 2024/5/1
 * @Description:
 */
public class test {
    public static String getDeail(String name, String id) {
        String columns="[{\n" +
                "        \"name\":"+ "\""+name+"\",\n" +
                "        \"id\": "+"\""+id+"\"\n" +
                "      },\n" +
                "      {\n" +
                "        \"name\": \"告警次数\",\n" +
                "        \"id\": \"alarm_count\"\n" +
                "      },\n" +
                "      {\n" +
                "        \"name\": \"一级告警次数\",\n" +
                "        \"id\": \"alarm_count_l1\"\n" +
                "      },\n" +
                "      {\n" +
                "        \"name\": \"二级告警次数\",\n" +
                "        \"id\": \"alarm_count_l2\"\n" +
                "      },\n" +
                "      {\n" +
                "        \"name\": \"三级告警次数\",\n" +
                "        \"id\": \"alarm_count_l3\"\n" +
                "      }]";
        return columns;
    }

    public static void main(String[] args) {
        String deail = getDeail("车型", "vin");
        System.out.println("deail = " + deail);
    }


}
